﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Common;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    public class TranslateFecharOrdemToParameter : BaseTranslator<BusinessEntity.Parameter.FecharOrdem, DataContract.Request.FecharOrdemRequest,
                                                        List<BusinessEntity.Parameter.FecharOrdem>, List<DataContract.Request.FecharOrdemRequest>>
    {
        public override Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.FecharOrdem Translate(Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request.FecharOrdemRequest from)
        {
            BusinessEntity.Parameter.FecharOrdem to = new Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.FecharOrdem();
            
            to.DataOrdem = from.DataOrdem;
            to.NumeroOrdem = from.NumeroOrdem;
            to.NumeroOrdemSubSequencia = from.NumeroOrdemSubSequencia;
            
            return to;
        }
    }
}
